import { http } from "./axios";
export const put = (url,data,Authorization) => {
    return new Promise((resolve  ) => {
        if(Authorization)
        http.put(url , data,{
            headers:{
                Authorization
            }
        }).then(res => {resolve(res)})
        else
            http.put(url,data).then(res=>{resolve(res)})
    })
}